import { createApp } from 'vue'
import './style.css'
import { setupRouter } from './router'
import { setupStore } from './store'
import App from './App.vue'
// 2. 引入组件样式
import 'vant/lib/index.css';
/**
 * 定义启动初始化函数
 */
const bootstrap = () => {
    const app = createApp(App)
  
    // 安装初始化路由
    setupRouter(app)
    // 安装初始化store
    setupStore(app)
    app.mount('#app')
  }
  
  // 启动
  bootstrap()
  
